package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IStrategyService {
    /**
     *查询所有攻略 分页
     * @param qo
     * @return
     */
    PageInfo<Strategy> query(QueryObject qo);

    void saveOrUpdate(Strategy commend, MultipartFile file);

    /**
     * 查询所有攻略
     * @return
     */
    List<Strategy> selectAll();

    /**
     * 根据地区查找攻略
     * @param placeId
     * @return
     */
    //List<Strategy> selectByPlaceId(Long placeId);
}
